#!/usr/bin/env python
# encoding: utf-8
#
# kdogs - Kick dogs, a lightweight watchdog kicker
#
# Copyright (C) 2007 Instituto Nokia de Tecnologia
#
# Author: Osvaldo Santana Neto <osvaldo.neto@openbossa.org>
#         Abner Silva <abner.silva@openbossa.org>
#
#  This program is free software; you can redistribute it and/or modify it
#  under the terms of the GNU General Public License as published by the
#  Free Software Foundation version 2 of the License.
#
#  This program is distributed in the hope that it will be useful, but
#  WITHOUT ANY WARRANTY; without even the implied warranty of
#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
#  General Public License for more details.
#
#  You should have received a copy of the GNU General Public License along
#  with this program; if not, write to the Free Software Foundation, Inc.,
#  51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
#

def build(bld):
    obj_final = bld.create_obj('cc', 'program')
    obj_final.source   = 'kdogsd.c kdogs_ioctl.c kdogs_sysfs.c'
    obj_final.includes = '. /usr/include'
    obj_final.target   = "kdogsd"

    #obj_debug = obj_final.clone('debug')
    obj_debug = bld.create_obj('cc', 'program')
    obj_debug.env      = bld.env_of_name('debug').copy()
    obj_debug.source   = 'kdogsd.c kdogs_ioctl.c kdogs_sysfs.c'
    obj_debug.includes = '. /usr/include'
    obj_debug.target   = "kdogsd"

    #obj.addflags("LINKFLAGS", "-static")

# vim:syntax=python:ts=4:sw=4:tw=0:et:si:ai:sm
